﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;

namespace Networking
{
	public class PlayerAttackGameEvent : GameEvent
	{
        public int damage = 2;

        public PlayerAttackGameEvent(NetworkPlayer attacker, int damage)
            :base(attacker, attacker, GameEventType.PlayerAttack)
        {
            this.damage = damage;
        }

        public PlayerAttackGameEvent(BitStream stream)
            :base(GameEventType.PlayerAttack, stream)
        {
            stream.Serialize(ref damage);
        }

        protected override void SerializeEventData(UnityEngine.BitStream stream)
        {
            stream.Serialize(ref damage);
        }

    }
}
